package com.abc.cloud.dao;

import com.abc.cloud.dto.user.UserSpace;
import com.abc.cloud.entity.UserEntity;
import com.abc.cloud.entity.UserRoleRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 用户表
 * 
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-10-27 13:09:54
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    UserSpace queryUserSpace(Long userId);

    UserEntity getByUsernameAndPassword(UserEntity user);

    List<UserRoleRelationEntity> getRole(Long userId);

    UserEntity getById(Long userId);

    List<UserEntity> getUserList(Integer currPage,Integer pageSize,String searchContent);

    Integer getCount(String searchContent);

    void updateUserStatus(List<Long> userIds,Integer status);

    UserSpace getSpace(Long userId);
}
